/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package modele;

import java.util.Collection;
import java.util.TreeSet;

/**
 *
 * @author ighembaza
 */
public class Matiere implements Comparable <Matiere> {

    private String id;
    private String nom;
    private Collection<Fichier> lesFichiers;

    public Matiere(String id, String nom, Collection<Fichier> lesFichiers) {
        this.id = id;
        this.nom = nom;
        this.lesFichiers = lesFichiers;
    }

    public String getId() {
        return id;
    }

    public String getNom() {
        return nom;
    }

    public Collection<Fichier> getLesFichiers() {
        return lesFichiers;
    }

    @Override
    public int compareTo(Matiere m) {
return nom.compareTo(m.nom);
    }

}
